package xsis.music.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="authority")
public class AuthModel {
	String authority;
	String email;
	int id_authority;
	
	@Column(name="authority")
	public String getAuthority() {
		return authority;
	}
	public void setAuthority(String authority) {
		this.authority = authority;
	}
	
	@Column(name="email")
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	@Id
    @GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="id_authority")
	public int getId_authority() {
		return id_authority;
	}
	public void setId_authority(int id_authority) {
		this.id_authority = id_authority;
	}
}
